﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using WPay.Application.Interface.OAuth;
using WPay.Domain.Model.DTOs;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Http;
using Microsoft.AspNetCore.Mvc;

namespace WPay.Web.API.Controllers.OAuth.v2
{

    [AllowAnonymous]
    [ApiVersion("2.0")]
    public class TestController : BaseController
    {

        // public TestController(ITest_ApplicationService _test_ApplicationService) => Test_ApplicationService = _test_ApplicationService;
        //public TestController(ITest_ApplicationService _test_ApplicationService)
        //{
        //    Test_ApplicationService = _test_ApplicationService;
        //}

        [HttpGet]
        [Microsoft.AspNetCore.Authorization.AllowAnonymous]
        public JsonResult Get(string id, string name)
        {

            return new JsonResult(new RespDto(true, 0, "登录成功 success v2"));
        }
    }
}